import React from "react"
import { Tabs, WhiteSpace,Badge } from 'antd-mobile';
import { BrowserRouter as Router, Route, Link,Switch } from 'react-router-dom'
import {browserHistory} from "react-router"
import SongList from "../SongList";
import Singer from "../Singer"

class Home extends React.Component {
  tiaozhaun(link){
    // this.history.push(link);
    // browserHistory.push("/singer")
  }
  render(){
    return (
    <div>
      {/* <Router>
        <ul>
          <li onClick={this.tiaozhaun.bind(this,"/singer")}>歌手</li>
          <li><Link to="/new/login/">
<button className="e-button" type="primary">Back to login page</button>
</Link></li>
          <li onClick={this.tiaozhaun.bind(this)}>排行榜</li>
          <li onClick={this.tiaozhaun.bind(this)}>分类歌单</li>
          <li onClick={this.tiaozhaun.bind(this)}>电台</li>
          <li onClick={this.tiaozhaun.bind(this)}>一起听</li>
          <li>搜索</li>
        </ul>
        <Switch>
          <Route path="/new/login" component={SongList} />
        </Switch>
    </Router> */}
  <h2>首页</h2>
 </div>
    )
  }
  
}

export default Home

